package com.alvis.media.service;

import com.alvis.media.domain.VideoInfo;
import com.alvis.media.viewmodel.video.VideoPageRequestVM;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface VideoService extends IService<VideoInfo> {
    List <VideoInfo> queryAll();

    /**
     *  视频列表分页查询
     */
    PageInfo<VideoInfo> findVideoInfoPage(VideoPageRequestVM model);

    /**
     *  添加视频播放
     */
    int insertVideoPlay(String videoRealUrl, Integer userId);

    /**
     * 修改视频信息
     */
    void updateVideoInfo(VideoInfo videoInfo);

    /**
     * 用户属性分析 -- 分析
     */
    List<VideoInfo> userAnalysis(Integer id);

    /**
     * 查询本月新增视频个数
     */
    int selectNewVideoCount(VideoInfo videoInfo);
}
